#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QWidget>
#include <QLabel>
#include <QGridLayout>
#include <QJsonDocument>
#include <QJsonObject>
#include <QJsonArray>
#include <QFile>
#include <QPixmap>
#include <QImage>
#include <QLocalServer>
#include <QLocalSocket>

QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE

class MainWindow : public QMainWindow
{
    Q_OBJECT // Make sure this macro is present

public:
    MainWindow(const QString& targetScreenName, int splitCount, QString& bkImagePath, QWidget *parent = nullptr);
    ~MainWindow();

private slots:
    void newConnection();
    void readData();

private:
    Ui::MainWindow *ui;
    QWidget *centralWidget;
    QGridLayout *gridLayout;
    QList<QLabel*> displayLabels;
    QLocalServer *localServer;
};
#endif // MAINWINDOW_H
